package models

import "gorm.io/gorm"

type Pet struct {
	gorm.Model
	Name    string `gorm:"type:varchar(30);not null;"`
	Sex     string `gorm:"type:varchar(10);not null;"`
	Info    string `gorm:"type:varchar(200);not null;"`
	Image   string `gorm:"type:varchar(500);not null;"`
	ClassId int64  `gorm:"type:int(11);not null;"`
	PesId   int64  `gorm:"type:int(11);not null;"`
}

type Class struct {
	gorm.Model
	Name string `gorm:"type:varchar(30);not null;"`
}

type Pes struct {
	gorm.Model
	Name string `gorm:"type:varchar(30);not null;"`
}

type PetList struct {
	Pet
	ClassName string
	PesName   string
}
